﻿using Basic.FormGatewaryModular.Interface;
using Basic.FormGatewaryModular.Model.UserRecord;
using Basic.FormRemoteModel.UserRecord;
using Basic.FormRemoteModel.UserRecord.Model;

namespace Basic.FormGatewaryModular.Services
{
    internal class UserRecordService : IUserRecordService
    {
        public long SetUserRecord ( UserRecordSet data, long empId )
        {
            return new SetUserRecord
            {
                Data = new RecordSet
                {
                    EmpId = empId,
                    FormId = data.FormId,
                    LinkPK = data.LinkPK,
                    LinkType = data.LinkType,
                    Table = data.Table
                }
            }.Send();
        }
    }
}
